package com.nb.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Table(value = "case_material",dataSource = "caseDS")
public class CaseMaterial {

    @Id(keyType = KeyType.Auto)
    @Column(value = "id", comment = "材料ID")
    private Long id;

    @Column(value = "case_id", comment = "关联案件ID")
    private Long caseId;

    @Column(value = "material_type", comment = "材料类型")
    private String materialType;

    @Column(value = "material_name", comment = "材料名称")
    private String materialName;

    @Column(value = "storage_path", comment = "存储路径")
    private String storagePath;

    @Column(value = "upload_time", comment = "上传时间")
    private LocalDateTime uploadTime;

    @Column(value = "audit_status", comment = "审核状态")
    private String auditStatus;

    @Column(value = "audit_comment", comment = "审核意见")
    private String auditComment;

    @Column(value = "evidence_score", comment = "证据效力评分(0-100)")
    private Integer evidenceScore;

    @Column(value = "evidence_type", comment = "证据类型")
    private String evidenceType;

    @Column(value = "preview_type", comment = "预览类型")
    private String previewType;

    @Column(value = "template_id", comment = "关联模板ID")
    private String templateId;
}
